import {PageType} from "../PageType.ts";
import LibraryFragment from "./LibraryFragment.tsx";
import OrderFragment from "./OrderFragment.tsx";


const FragmentServer = (props: { pageType: PageType }) => {

    const {pageType} = props
    switch (pageType){
        case PageType.LIBRARY:
            return <LibraryFragment/>
        case PageType.ORDERS:
            return <OrderFragment/>
        case PageType.LENDING:

    }
}

export default FragmentServer